home *** CD-ROM | disk | FTP | other *** search
/ ...taking it to the Macs! / ...taking it to the Macs!.iso / Extras / ActiveX Mac SDK / ActiveX SDK / Headers / platform.h < prev    next >
Encoding:
Text File  |  1996-12-14  |  1.6 KB  |  83 lines  |  [TEXT/CWIE]

  1. // =================================================================================
  2. //
  3. //    platform.h                        ©1996 Microsoft Corporation All rights reserved.
  4. //
  5. //    Platform-specific type definitions
  6. //
  7. // =================================================================================
  8.  
  9. #ifndef _H_AXPlatform
  10. #define _H_AXPlatform
  11. #pragma once
  12.  
  13. #ifndef __QUICKDRAW__
  14. #include <Quickdraw.h>
  15. #endif    //    __QUICKDRAW__
  16.  
  17. #ifndef __PRINTING__
  18. #include <Printing.h>
  19. #endif    //    __PRINTING__
  20.  
  21. #ifndef __EVENTS__
  22. #include <Events.h>
  23. #endif    //    __EVENTS__
  24.  
  25. typedef        char            Int8;
  26. typedef        short            Int16;
  27. typedef        long            Int32;
  28.  
  29. typedef        unsigned char    Uint8;
  30. typedef        unsigned short    Uint16;
  31. typedef        unsigned long    Uint32;
  32.  
  33. typedef        char            Char8;
  34. typedef        Uint16            Char16;
  35.  
  36. typedef        unsigned char    Uchar8;
  37.  
  38. typedef        Int8            Boolean8;
  39. typedef        Int16            Boolean16;
  40. typedef        Int32            Boolean32;
  41.  
  42.  
  43. typedef enum
  44. {
  45.     BeginPortType = 0,            //    enum boundary value
  46.     QDWindowPortType,
  47.     QDOffscreenPortType,
  48.     QDPrintPortType,
  49.     EndPortType,                //    enum boundary value
  50.     PadPortType = 0xffffffff    //    insure enum takes 32 bits
  51. }
  52. PortType;
  53.  
  54.  
  55. typedef GrafPort    PlatformPort;
  56. typedef EventRecord PlatformEvent;
  57. typedef Point        PlatformPoint;
  58.  
  59. typedef struct
  60. {
  61.     RgnHandle    Region;            // Macintosh Region Handle
  62.     Char8        Reserved[32];     // Reserved for later use
  63. }
  64. PlatformRegion;
  65.  
  66. typedef struct
  67. {
  68.     PortType    PortType;
  69.     Uint32        DrawAspect;
  70.     Uint32         ContextID;
  71.     Uint32         ContainerRef;
  72.     GrafPtr        Port;
  73.     THPrint        PrintRec;
  74.     Rect        Location;
  75.     Char8        Reserved[44];    //    this space to be used later
  76. }
  77. DrawContext;
  78.  
  79.  
  80. typedef long ErrorCode;
  81.  
  82. #endif
  83.